package com.zyp.shop.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by Intellij IDEA
 * 返回给前端结果集使用的
 * @author 赵雅璞
 * @Date: 2022/11/17 12:14
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result {
    @ApiModelProperty(value = "状态码",required = true,dataType = "int")
    private int code;
    @ApiModelProperty(value = "备注信息",required = true,dataType = "String")
    private String mode;
    @ApiModelProperty(value = "回调返回数据",required = false,dataType = "String")
    private Object data;

    public Result(int code, String mode) {
        this.code = code;
        this.mode = mode;
    }
}
